package com.infinity.googleplacesandmaps;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageButton;

public class Home_Activity extends Activity {
	private Button btn1;
	private Button btn2;
	private Button btn3;
	private Button btn4;
	private Button btn5;
	private Button btn6;
	private Button btn7;
	private Button btn8;
	private Button btn9;
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_home);
		
		btn1 = (Button) findViewById(R.id.imageButton1);
		btn1.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent i = new Intent(getApplicationContext(),MainActivity.class);
				i.putExtra("value", "movie_theater|movie_rental|movie_company");
				startActivity(i);
			}
		});
		
		btn2 = (Button) findViewById(R.id.imageButton2);
		btn2.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent i = new Intent(getApplicationContext(),MainActivity.class);
				i.putExtra("value", "restaurant");
				startActivity(i);
			}
		});
		
		btn3 = (Button) findViewById(R.id.imageButton3);
		btn3.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent i = new Intent(getApplicationContext(),MainActivity.class);
				i.putExtra("value", "lodging");
				startActivity(i);
			}
		});
		
		
		btn4 = (Button) findViewById(R.id.imageButton4);
		btn4.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent i = new Intent(getApplicationContext(),MainActivity.class);
				i.putExtra("value", "cafe");
				startActivity(i);
			}
		});
		
		btn5 = (Button) findViewById(R.id.imageButton5);
		btn5.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent i = new Intent(getApplicationContext(),MainActivity.class);
				i.putExtra("value", "bar");
				startActivity(i);
			}
		});
		
		btn6 = (Button) findViewById(R.id.imageButton6);
		btn6.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent i = new Intent(getApplicationContext(),MainActivity.class);
				i.putExtra("value", "gym");
				startActivity(i);
			}
		});
		
		
		btn7 = (Button) findViewById(R.id.imageButton7);
		btn7.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent i = new Intent(getApplicationContext(),MainActivity.class);
				i.putExtra("value", "hospital");
				startActivity(i);
			}
		});
		
		btn8 = (Button) findViewById(R.id.imageButton8);
		btn8.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent i = new Intent(getApplicationContext(),MainActivity.class);
				i.putExtra("value", "taxi_stand");
				startActivity(i);
			}
		});
		
		btn9 = (Button) findViewById(R.id.imageButton9);
		btn9.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent i = new Intent(getApplicationContext(),MainActivity.class);
				i.putExtra("value", "train_station");
				startActivity(i);
			}
		});
		
	}

}
